home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 1618 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.6 KB

  1. From: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  2. Date: Wed, 22 Jun 94 10:45:12 +0200
  3. Message-Id: <9406220845.AA25344@issan.informatik.uni-dortmund.de>
  4. To: huveneer@math.ruu.nl
  5. In-Reply-To: <199406211232.AA11896@hieper.math.ruu.nl> (message from Richard Huveneers on Tue, 21 Jun 1994 14:32:47 +0200)
  6. Subject: Re: tty's & pty's
  7.  
  8. Richard Huveneers <huveneer@math.ruu.nl> writes:
  9.  
  10. |> The point is that I am trying to port the program "screen 3.5.2" to mint.
  11. |> I run this program on all terminals connected to a sun, and I really like it.
  12. |> The point is, that screen expects pseudo terminals, and as far as I know,
  13. |> mint does not have them.
  14.  
  15. Of course, MiNT has pseudo terminals, but they are handled quite
  16. differently (i.e. better :-) than under Unix.  If you want one, just
  17. create it in the /pipe filesystem:
  18.  
  19. Fcreate ("u:\\pipe\\name", FA_SYSTEM)
  20.  
  21. FA_SYSTEM tells the pipe filesystem that this is a pseudo terminal and
  22. it will hand back a handle for the pty master.  The next open will
  23. give you a handle for the pty slave.  Note that you must use Fcreate
  24. directly to create the pty, with open(2) you cannot pass FA_SYSTEM.
  25. On the other hand, the number of pty's is only limited by the
  26. available memory, and you can give them arbitrary names, as long as
  27. they are in the pipe filesystem.  And there is only one name to worry
  28. about.  Apart from this, pty's are quite BSD'ish.
  29.  
  30. -- 
  31. +------------------------------------------------------------------------+
  32. Andreas Schwab                                      "And now for something
  33. schwab@ls5.informatik.uni-dortmund.de                completely different"
  34.